<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Office/department')}">{:lang('部门管理')}</a></li>
			<li><a href="{:url('Office/add_department')}">{:lang('部门添加')}</a></li>
			<li class="active"><a href="{:url('Office/edit',array('id'=>$id))}">部门编辑</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:url('Office/edit_post')}">
			<fieldset>
				<input type="hidden" name="id" value="{$id}">

                 <div class="control-group">
					<label class="control-label">部门名称</label>
					<div class="controls">
						<input type="text" name="department_name" value="{$department_name}" class="form-control">
                        <span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">部门主管</label>
					<div class="controls">
						<select name="user_id" class="form-control" >
							<volist name="user" id="vo">
								<option value="{$vo.id}" <if condition="$user_id eq $vo.id">selected</if>>{$vo.user_nickname}</option>
							</volist>
						</select>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">归属部门</label>
					<div class="controls">
						<select name="dept_type" class="form-control">
							<option value='1'<if condition="'1' eq $dept_type">selected</if>>业务部</option>
							<option value="2" <if condition="'2' eq $dept_type">selected</if>>财务部</option>
							<option value="3" <if condition="'3' eq $dept_type">selected</if>>客服部</option>
							<option value="4" <if condition="'4' eq $dept_type">selected</if>>工程部</option>
							<option value="5" <if condition="'5' eq $dept_type">selected</if>>供货商</option>
							<option value="6" <if condition="'6' eq $dept_type">selected</if>>人事部</option>
							<option value="7" <if condition="'7' eq $dept_type">selected</if>>抵顶人</option>
							<option value="8" <if condition="'8' eq $dept_type">selected</if>>代理商</option>
							<option value="9" <if condition="'9' eq $dept_type">selected</if>>礼仪部</option>
							<option value="10" <if condition="'10' eq $dept_type">selected</if>>总经办</option>
						</select>
					</div>
				</div>
			</fieldset>
			<div class="form-actions">
				<input type="hidden" name="id" value="{$id}" />
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				<a class="btn" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>

</body>
</html>